package com.example.demo1.rmi;

import lombok.extern.slf4j.Slf4j;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @author zhangzichang
 * @Description: TODO
 * @company：CTTIC
 * @since 2021/11/3 11:03
 */
@Slf4j
public class UserServiceImpl extends UnicastRemoteObject implements UserService {
    public UserServiceImpl() throws RemoteException {
        super();
    }

    @Override
    public String getName(String id) throws RemoteException {
        log.info("id : {}", id);
        return "test";
    }
}
